/**
 * Created by Administrator on 2017/6/28.
 */

import React from 'react'
import {Image,Text} from 'react-native'

let bcImg = require('../.././Img/splash_1.png')
let Dimensions = require('Dimensions');

const ScreenSize = {
    width: Dimensions.get('window').width,
    height: Dimensions.get('window').height
};
export default class Splash extends React.Component{

    static navigationOptions = ({navigation}) =>({
        headerStyle:{
            height:0//隐藏标题栏
        }
    })

    render(){
        return(
            <Image style={{width:ScreenSize.width,height:ScreenSize.height}} source={bcImg}/>
        )
    }
    componentDidMount() {
        this.timer = setTimeout(() =>{this.props.navigation.navigate('mainAty')},3000)
    }

    componentWillUnmount() {
        clearTimeout(this.timer)
    }
}